<?php
include("../function.php");

if($_POST['request'] == 1){
	if($_POST['gallery_name'] != ""){
		$x=mysql_query("insert into gallery (name,user,create_time,del)value('$_POST[gallery_name]','$_SESSION[login_mail]',now(),0)")or die(mysql_error());
		showUserGallery($_SESSION['login_mail']);
	}
}
?>